<%-- 
    Document   : Connect
    Created on : Dec 8, 2013, 12:32:35 PM
    Author     : Prasetyawan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>try{
Class.forName(“oracle.jdbc.driver.OracleDriver”);
}catch(ClassNotFoundException e){
out.print(e.getMessage());
}
String koneksi=”jdbc:oracle:thin:@localhost:1521:Orcl”;
String user=”hr”;
String pass=”hr″;

Connection con=DriverManager.getConnection(koneksi,user,pass);
Statement st=con.createStatement();
ResultSet rs;
%>
<